package com.itheima.dao;

import java.util.*;

/**
 * 集合和复杂数据的注入
 */
public class DIConstructor3 {

    public String[] string;
    public List<String> list;
    public Set<String> strings;
    public Map<String, String> map;
    public Properties properties;

    public void setString(String[] string) {
        this.string = string;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setStrings(Set<String> strings) {
        this.strings = strings;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }


    @Override
    public String toString() {
        return "DIConstructor3{" +
                "string=" + Arrays.toString(string) +
                ", list=" + list +
                ", strings=" + strings +
                ", map=" + map +
                ", properties=" + properties +
                '}';
    }
}
